// 重写vant组件部分css定义变量
:root {
    --van-border-color: #eee;
}

* {
    box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    margin: 0;
}

img {
    -webkit-touch-callout: default !important;
}

input,
textarea {
    -webkit-user-select: auto !important;
    user-select: auto !important;
}

// 移动端长按会触发 选择文字（复制 全选 搜一搜）
// .user .message .rich-text{
//     -webkit-user-select: auto !important;
//     user-select: auto !important;
// }

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

body {
    position: fixed;
}

#app {
    width: 100%;
    height: 100%;
    font-family: PingFangSC-Regular, PingFang SC;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #222;
    font-size: .24rem;
    background: white;
    overflow-y: auto;
}

.van-dialog .input-wrap {
    padding: 0.1rem 0.3rem;
    font-size: 0.25rem;

    .input {
        background: rgba(245, 245, 245, 1);
        border-radius: 4px;
        height: 0.8rem;
        margin-top: 0.1rem;

        input {
            width: 100%;
            height: 100%;
            border: none;
            outline: none;
            background-color: transparent;
            padding-left: 5px;
        }

        input::-webkit-input-placeholder {
            color: #bbb;
        }
    }

    .tips {
        display: inline-block;
        padding: 0.15rem 0 0.4rem;
        color: #666;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 0px;
    /*  设置纵轴（y轴）轴滚动条 */
    height: 0px;
    /*  设置横轴（x轴）轴滚动条 */
}

/* 滚动条滑块（里面小方块） */
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
}

/* hover时显色 */
.history:hover::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

/* hover时显色 */
.tags:hover::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

input::-webkit-input-placeholder {
    color: #949FB4;
}

.oneline {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.twoline {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp:2;
    overflow: hidden;
    text-overflow: ellipsis;
}

// 消息里面的富文本
.message,
.content {
    p {
        margin: 0;
    }
}

.normal .message {
    background-color: white !important;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes brighten {
    50% {
        background-color: #9ac5f3;
    }

    100% {
        background-color: #6ca4f4;
    }
}

@keyframes like-animation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes unlike-animation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes blink {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}